<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class CronogramaForm  extends sfForm{
  public function configure()
  {
      $this->widgetSchema['objetivo']=new sfWidgetFormDoctrineChoice(array(
                    'model'     => 'objetivo',
                    'add_empty' => 'Seleccione objetivo',
                ));

    $this->widgetSchema['actividad']=new sfWidgetFormDoctrineDependentSelect(array(
                    'model'     => 'actividad',
                    'depends'   => 'objetivo',
                    'add_empty' => 'Seleccione Actividad',
                ));
    $this->validatorSchema['objetivo'] = new sfValidatorDoctrineChoice(array(
                    'model' => 'objetivo',
                ));

                $this->validatorSchema['actividad'] = new sfValidatorDoctrineChoice(array(
                    'model' => 'actividad',
                ));
  }
}

?>
